package com.example.zk2_lx.util;

import com.example.zk2_lx.entity.ResultEntity;
import com.example.zk2_lx.entity.VideoEntity;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiServer {
    @GET(ConsUtils.VIDEO_URL)
    Observable<VideoEntity> video(@Query("currentPage") int page,@Query("pageSize") int size);

    @POST(ConsUtils.LOVE_URL)
    Observable<ResultEntity> love(@Query("videoId") int id);
    @POST(ConsUtils.NOLOVE_URL)
    Observable<ResultEntity> nolove(@Query("videoId") int id);
}
